import http from "@/utils/http";

// 获取生产周期配置分类列表
export const categoryList = data => {
  return http.get("/mall/tenant/factory/info/categoryList", data);
};

// 获取分类生产周期
export const getCategoryCycleTree = data => {
  return http.get(`/mall/tenant/factory/info/getCategoryCycleTree/${data.categoryId}`, { factoryId: data.factoryId });
};

// 修改分类生产周期
export const updateCategoryCycle = data => {
  return http.post("/mall/tenant/factory/info/updateCategoryCycle", data);
};

// 获取基础服务配置信息
export const getServiceConfigInfo = data => {
  return http.post("/mall/tenant/factory/info/getServiceConfigInfo", data);
};

// 获取基础服务配置信息
export const updateServiceConfig = data => {
  return http.post("/mall/tenant/factory/info/updateServiceConfig", data);
};
